<?php
	include_once("db/RepositoryExt.inc");
	include_once("db/AuditLogs.inc");
	
	$euid = $_REQUEST["euid"];
	
	AuditLogs::insertLog(User::getUser($_SESSION["uid"])->username, 'admin - unlock document', $euid);
	RepositoryExt::unlockDoc($euid);
	
	header("Location: .?action=viewUnlock");
?>